﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第121题
//BC123 小乐乐找最大数
//https://www.nowcoder.com/practice/ae6a21920cac4f9184c8ecfcc87f89b9?tpId=107&tqId=33404&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D3%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int max = 0;
    int temp = 0;

    for (int i = 0; i < 4; i++) {
        scanf("%d", &temp);
        if (temp > max)
            max = temp;
    }

    printf("%d", max);

    return 0;
}